//
//  DKMsgPopUp.h
//  DanKU
//
//  Created by 吴斌 on 2023/10/1.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
extern CGFloat const DKPopupDefaultWaitDuration;

@interface DKMsgPopUp : UILabel
@property (strong, nonatomic) UIColor *popupColor UI_APPEARANCE_SELECTOR;
@property (assign, nonatomic) CGFloat forwardAnimationDuration;
@property (assign, nonatomic) CGFloat backwardAnimationDuration;
@property (assign, nonatomic) UIEdgeInsets textInsets;
@property (assign, nonatomic) CGFloat maxWidth;

#pragma mark - Initialization
+ (DKMsgPopUp *)popupWithText:(NSString *)txt;
- (id)initWithText:(NSString *)txt;
#pragma mark - Showing popup
- (void)showInView:(UIView *)parentView centerAtPoint:(CGPoint)pos duration:(CGFloat)waitDuration completion:(void (^)(void))block;
@end

NS_ASSUME_NONNULL_END
